package coreservlets;

import java.util.concurrent.*;

public class App1 extends SomeClass {
  public App1() {
    ExecutorService taskList = Executors.newFixedThreadPool(100);
    taskList.execute(new Counter(this, 6));
    taskList.execute(new Counter(this, 5));
    taskList.execute(new Counter(this, 4));
    taskList.shutdown();
  }

  public void pause(double seconds) {
    try {
      Thread.sleep(Math.round(1000.0 * seconds));
    } catch (InterruptedException ie) { }
  }
}
